package com.jic.member.service;

import java.lang.Long;
import java.util.List;

import com.jic.member.entity.MememberGrowthOrderMoney;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.Page;
import com.jic.member.response.MemberGrowthOrderResponse;

/**
* 会员等级管理-成长值规则-N次下单-充值赠送表
* @author : 
* @email : 
* @since : 2020-04-10 07:43:17
* @version : v1.0.0
*/
public interface MememberGrowthOrderMoneyService {

    long insert(MememberGrowthOrderMoney mememberGrowthOrderMoney);

    long delete(Long id);

    long update(MememberGrowthOrderMoney mememberGrowthOrderMoney);

    MememberGrowthOrderMoney queryByPrimaryKey(Long id);

    List<MememberGrowthOrderMoney> query(MememberGrowthOrderMoney mememberGrowthOrderMoney);

    PageResult<MememberGrowthOrderMoney> queryPage(MememberGrowthOrderMoney mememberGrowthOrderMoney, Page pageQuery);

    long deleteByOrderId(Long id);

    /*根据成长值主规则表查询最小成长值*/
    MememberGrowthOrderMoney getGiveGrowthValById(Long id);

    /*根据成长值主规则表查询成长值和*/

    Long getSumGiveGrowthValById(Long id);

}